import React ,{ Component}from 'react';
import { NavBar, Icon } from 'antd-mobile';
import {  withRouter } from 'react-router-dom'
import './Headsty.css'
@withRouter
class Navheader extends Component{
    handleClick = () =>{
        let { history} = this.props
        history.goBack()
    }
    render(){
        return (
            <NavBar
                mode="dark"
                icon={<Icon type="left" />}
                onLeftClick={ this.handleClick }
            >{this.props.title}</NavBar>
        )
    }
}
export default Navheader
